
const files  = require.context('./', true, /\.vue$/);
const components = []
// 遍历出每个组件的路径
files.keys().forEach(fileName => {
    const file = files(fileName)
    const com = file.default || file
    if (com.name) {
        components.push(com)
    }
})
console.info('注册lab组件:',components.length)
export default components